package com.yh.csx.bsf.flow.core;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author: chejiangyi
 * @version: 2019-10-25 16:37
 **/
@Component
@Data
public class FlowProperties {
    @Value("${start.notify.template:您有一条待审批任务 @tasktitle, 点击 @taskurl}")
    private String startNotifyTemplate;

    @Value("${end.notify.template:您已完成一条审批任务 @tasktitle, 点击 @taskurl}")
    private String endNotifyTemplate;

    @Value("${timeout.notify.template:您有一条审批任务已超时 @tasktitle, 点击 @taskurl ,请尽快处理!}")
    private String timeoutNotifyTemplate;

    @Value("${url.task.template:192.168.0.1/task/taskid=@taskid}")
    private String taskUrlTemplate;

    @Value("${transaction.enabled:true}")
    private Boolean transaction;

    @Value("${transaction.level:1}")
    private Integer level;

    @Value("${message.sms:false}")
    private Boolean sms;

    @Value("${message.mail:false}")
    private Boolean mail;

    @Value("${message.mail.from:csx_marketing@yonghui.cn}")
    private String mailfrom;

    @Value("${message.mail.pass:yh601933}")
    private String mailpass;

    @Value("${message.mail.host:smtp.yonghui.cn}")
    private String mailhost;

    @Value("${timespan.enabled:true}")
    private Boolean timespanEnabled;

}